package com.example.web.config;

import com.example.web.util.CheckUtil;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.MessageSource;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * Created by liuw on 2017/11/15.
 */
@Component
public class StaticFieldInjectionConfiguration {

    @Autowired
    private MessageSource messageSource;

    @PostConstruct
    private void init() {
        CheckUtil.setResources(messageSource);
    }
}
